package org.ring.csr.core;

import com.puppycrawl.tools.checkstyle.api.SeverityLevel;

/**
 * 
 * @author Ray Ling
 */
public class ErrorReport implements CheckReport {
    private final int line;
    private final int column;
    private final String message;
    private final SeverityLevel severity;
    private final Object source;
    private final String sourceName;

    public ErrorReport(int line, int column, String message,
	    SeverityLevel severity, Object source, String sourceName) {
	this.line = line;
	this.column = column;
	this.message = message;
	this.severity = severity;
	this.source = source;
	this.sourceName = sourceName;
    }

    public int getLine() {
	return line;
    }

    public int getColumn() {
	return column;
    }

    public String getMessage() {
	return message;
    }

    public SeverityLevel getSeverity() {
	return severity;
    }

    public Object getSource() {
	return source;
    }

    public String getSourceName() {
	return sourceName;
    }
}
